package com.pie4cloud.pie.job.api.feign;


import com.pie4cloud.pie.common.core.constant.SecurityConstants;
import com.pie4cloud.pie.common.core.constant.ServiceNameConstants;
import com.pie4cloud.pie.common.core.util.R;
import com.pie4cloud.pie.job.api.dto.CallBackDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteCallBackService", value = ServiceNameConstants.JOB_SERVICE)
public interface RemoteCallBackService {
	@PostMapping("/callback/execute" )
	public R execute(@RequestBody CallBackDto callBackDto, @RequestHeader(SecurityConstants.FROM) String from);
}
